$(function(){
		var pathName = document.location.pathname;
		var index = pathName.substr(1).indexOf("/");
		var result = pathName.substr(0,index+1);
		$("#dataForm").submit(function(){
				$(this).ajaxSubmit({
					url:result+"/pro/add",
					type:"post",
					dataType:"json",
					success:function(data){
						if(data.success){
							alert(data.message);
							location.href="product.html";
						}else{
							alert(data.msg);
						}
					},error:function(){
						alert("添加信息请求处理异常");
					}
				})
				return false;
		})
})